package com.zyw.mvc.support;

import java.util.List;

/**
 * @author huoli_zhangyw
 * @ClassName QueryResult
 * @Description
 * @date 16/9/6 16:25
 */
public class QueryResult {

    private String code;
    private String msg;

    private QueryItem data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public QueryItem getData() {
        return data;
    }

    public void setData(QueryItem data) {
        this.data = data;
    }

    public static class QueryItem {

        private int total;
        private List rows;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List getRows() {
            return rows;
        }

        public void setRows(List rows) {
            this.rows = rows;
        }
    }
}
